import request from '@/utils/request'

// 查询设备安装列表
export function listDeviceInstall(query) {
  return request({
    url: '/business/deviceInstall/list',
    method: 'get',
    params: query
  })
}

// 查询设备安装详细
export function getDeviceInstall(id) {
  return request({
    url: '/business/deviceInstall/' + id,
    method: 'get'
  })
}

// 新增设备安装
export function addDeviceInstall(data) {
  return request({
    url: '/business/deviceInstall',
    method: 'post',
    data: data
  })
}

// 修改设备安装
export function updateDeviceInstall(data) {
  return request({
    url: '/business/deviceInstall',
    method: 'put',
    data: data
  })
}

// 删除设备安装
export function delDeviceInstall(id) {
  return request({
    url: '/business/deviceInstall/' + id,
    method: 'delete'
  })
}
